import Taro, { Component } from '@tarojs/taro'
import { View, Button } from '@tarojs/components'


class Counter extends Component {
  render() {
    return (
      <View>
        <Button onClick={()=>this.props.changeCount(-1)}>-</Button>
        {
          this.props.count
        }
        <Button onClick={()=>this.props.changeCount(1)}>+</Button>
      </View>
    )
  }
}

export default Counter;